<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>主页</title>
    <link rel="stylesheet" href="../static/css/bootstrap.min.css">
    <link rel="stylesheet" href="../static/css/home.css">
    <link rel="shortcut icon" href="../static/images/cup.ico">
</head>

<body>
    <!-- 具体样式 -->
    <div class="container">
        <div class="row">
            <div class="col-sm"></div>
            <div class="col-sm">
                <div class="card" style="width: 50rem;">
                    <div class="card-header">
                        <div class="row">
                            <div class="col-sm-4 d-flex justify-content-start">
                                <button type="button" class="btn btn-primary btn-lg" data-toggle="modal"
                                    data-target="#saysomething">发表说说</button>
                            </div>
                            <div class="col-sm-4 d-flex justify-content-center">
                                <h4>当前用户：{{username}}</h4>
                            </div>
                            <div class="col-sm-4 d-flex justify-content-end"><button type="button"
                                    class="btn btn-secondary btn-lg" data-toggle="modal"
                                    data-target="#areyouread">注销</button>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
            <div class="col-sm"></div>
        </div>

        <div class="row">
            <div class="col-sm">
            </div>
            <div class="col-sm">
                <div class="card border-primary shadow" style="width: 50rem;">
                    <div class="card-header">
                        <div class="row">
                            <div class="col-sm-10">今天好高兴呀，我的女神给我发晚安了，内容是：我早<a style="color: red;">晚安</a>排人干死你！</div>
                            <div class="col-sm-2"><button type="button" class="btn btn-secondary btn-sm"
                                    data-toggle="modal" data-target="#comment">吐槽一下</button>
                            </div>
                        </div>
                    </div>
                    <div class="card-body">
                        <ul class="list-group list-group-flush">
                            <li class="list-group-item">
                                <blockquote class="blockquote mb-0">
                                    <p>哈哈哈哈哈xswl </p>
                                    <footer class="blockquote-footer">
                                        <cite title="Source Title">张三</cite>&nbsp;&nbsp;对
                                        <cite title="Source Title">啊炎同学</cite>&nbsp;&nbsp;说
                                    </footer>
                                </blockquote>
                            </li>
                            <li class="list-group-item">
                                <blockquote class="blockquote mb-0">
                                    <p>我希望你对我说：宝，早安！而不是：早，保安！</p>
                                    <footer class="blockquote-footer">
                                        <cite title="Source Title">李四</cite>&nbsp;&nbsp;对
                                        <cite title="Source Title">啊炎同学</cite>&nbsp;&nbsp;说
                                    </footer>
                                </blockquote>
                            </li>
                            <li class="list-group-item">
                                <blockquote class="blockquote mb-0">
                                    <p>舔狗舔到最后一无所有</p>
                                    <footer class="blockquote-footer">
                                        <cite title="Source Title">王五</cite>&nbsp;&nbsp;对
                                        <cite title="Source Title">啊炎同学</cite>&nbsp;&nbsp;说
                                    </footer>
                                </blockquote>
                            </li>
                            <li class="list-group-item">
                                <blockquote class="blockquote mb-0">
                                    <p>啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦了了了了了了了了了了了了了了了了</p>
                                    <footer class="blockquote-footer">
                                        <cite title="Source Title">赵六</cite>&nbsp;&nbsp;对
                                        <cite title="Source Title">啊炎同学</cite>&nbsp;&nbsp;说
                                    </footer>
                                </blockquote>
                            </li>
                        </ul>

                    </div>
                </div>
            </div>
            <div class="col-sm">
            </div>
        </div>
    </div>

    <!-- 发表说说  -->


    <div class="modal fade" id="saysomething" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="exampleModalLabel">发表说说</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <form>
                        <!-- <div class="form-group">
                            <input type="text" class="form-control" aria-describedby="passwordHelpInline">
                        </div> -->
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">开始编辑吧</span>
                            </div>
                            <textarea class="form-control" aria-label="With textarea"></textarea>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary">发表</button>
                </div>
            </div>
        </div>
    </div>

    <!-- 吐槽一下 -->
    <div class="modal fade" id="comment" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="exampleModalLabel">吐槽一下</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <form>
                        <div class="form-group">
                            <input type="text" class="form-control" aria-describedby="passwordHelpInline">
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary">吐槽</button>
                </div>
            </div>
        </div>
    </div>

    <!-- 是否确认注销 -->
    <div class="modal" tabindex="-1" id="areyouread">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">确定注销？</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <p>呜呜呜，我会很想你的</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">算了</button>
                    <button type="button" class="btn btn-primary" onclick="logoff()">确认</button>
                </div>
            </div>
        </div>
    </div>

    <!-- 运行逻辑 -->
    <script>
        // 注销
        function logoff() {
            window.location.href = '/';
        }
    </script>

    <script src="../static/js/jquery-3.6.0.min.js"></script>
    <script src="../static/js/bootstrap.min.js"></script>
</body>

</html>